package com.example.myapplication;

import com.google.gson.Gson;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Lx on 2018/8/27.
 */

@Module
public class GsonModule {

    @ApplicationScope//加上后全局单列
    @Provides
    public Gson procideGson() {
        return new Gson();
    }
}
